package com.ssyan.factory.factorymethod.order;

import com.ssyan.factory.factorymethod.BJCheesePizza;
import java.util.Scanner;

/**
 * @author ssyan
 * @Description 客户端
 * @create 2021/8/27 22:26
 * @Version 1.0
 */
//相当于一个客户端，发出订购
public class PizzaStore {
    public static void main(String[] args) {
        System.out.println("请输入您需要的地区风味:");
        String location = new Scanner(System.in).nextLine();
        if (location.equals("北京")){
            new BJOrderPizza();
        } else if (location.equals("伦敦")) {
            new LDOrderPizza();
        }
    }
}
